<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

Route::get('hello', 'admin/index/hello');
Route::get('common', 'admin/common/index');


//后台首页
Route::get('admin/index','admin/Admin/index');
//后台管理员登录
Route::post('admin/login','admin/Admin/login');
//后台用户退出
Route::get('admin/logout','admin/Admin/logout');
//添加管理员链接
Route::any('admin/add','admin/Admin/add',['method'=>'get|post']);
//管理员列表
Route::get('admin/list','admin/Admin/list');
//管理员删除
Route::resource('admin/admin','admin/Admin');
//管理员验证
Route::post('admin/admin/check','admin/Admin/check');




//会员列表
Route::get('admin/member/list','admin/Member/list');
//会员添加
Route::any('admin/member/add','admin/Member/add',['method'=>'get|post']);
//会员的修改页面
Route::get('admin/member/edit','admin/Member/edit');
//会员修改
Route::post('admin/member/update','admin/Member/update');
//会员删除
Route::resource('admin/member','admin/Member');

//分类列表
Route::get('admin/symbolcat/list','admin/SymbolCat/list');
//分类添加链接
Route::any('admin/symbolcat/add','admin/SymbolCat/add',['method'=>'get|post']);








//费用管理
Route::get('admin/cost','admin/costs/index');
//费用添加
Route::get('admin/costs/add','admin/costs/add');
Route::post('admin/costs/add','admin/costs/add');
//费用修改
Route::get('admin/costs/update','admin/costs/update');
Route::post('admin/costs/update','admin/costs/update');

//订单查看
Route::get('admin/order/index','admin/order/index');
//订单打印
Route::post('admin/order/excel','admin/order/excel');

//挂单查看
Route::get('admin/orderReason/index','admin/orderReason/index');
//挂单搜索
Route::post('admin/orderReason/index','admin/orderReason/index');
//挂单打印
Route::post('admin/orderReason/excel','admin/orderReason/excel');

//产品查看
Route::get('admin/symbol/index','admin/symbol/index');
//产品搜索
Route::get('admin/symbol/index','admin/symbol/index');
//产品添加页面
Route::get('admin/symbol/add','admin/symbol/add');
//产品添加
Route::post('admin/symbol/add','admin/symbol/add');
//产品修改页面
Route::get('admin/symbol/update','admin/symbol/update');
//产品修改
Route::post('admin/symbol/update','admin/symbol/update');
//产品删除
Route::get('admin/symbol/del','admin/symbol/del');

//用户银行卡信息
Route::get('admin/memberbankinfo/index','admin/memberBankinfo/index');



//前台登录
Route::post('LoginIndex','index/LoginController/index');
Route::post('registerIndex','index/LoginController/register');







return [

];
